import request from '@/utils/request';

// 获取文章分类
export function getArticleCategoryApi() {
  return request({
    url: '/users/legal/legal_article_categories',
    method: 'get',
  });
}
// 获取文章列表
export function getArticleListApi(data) {
  return request({
    url: '/users/legal/legal_articles',
    method: 'get',
    data,
  });
}
// 获取文章详情
export function getArticleDetailApi(id) {
  return request({
    url: `/users/legal/legal_articles/${id}`,
    method: 'get',
  });
}
